import request from '@/utils/request'

export const getAdsList = (params) => request.get('/advertisement/list', { params })

export const getAdsDetail = (id) => request.get(`/advertisement/${id}`)

export const approveAds = (id) => request.put(`/advertisement/${id}/approve`)

export const rejectAds = (id) => request.put(`/advertisement/${id}/reject`)

export const deleteAds = (id) => request.delete(`/advertisement/${id}`)

export const addAds = (data) => request.post('/advertisement', data)
